package com.mk.web.aop.advice.schema;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * Created by WangChen on 2018/11/30 1:44.
 */
public class ArroundAdvice implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("环绕-前置");
        Object result = invocation.proceed();//放行,调用切点方式
        System.out.println("环绕-后置");
        return result;
    }
}
